<?php

class Db_Tables_SysApiLog extends Zend_Db_Table
{
    protected $_name = 'sys-api-log';
    var $log_status;
	var $log_contents;
	
    function AddRecord()
	{
		if($this->log_contents)
		{
			$row = $this->createRow();
			$row->log_ctime = date("Y-m-d H:i:s");
			$row->log_status = $this->log_status;
			$row->log_contents = $this->log_contents;
			$result = $row->save();
		}else{
			$result = FALSE;
		}
		
		return $result;
	}
}